home *** CD-ROM | disk | FTP | other *** search
/ Aminet 32 / Aminet 32 (1999)(Schatztruhe)[!][Aug 1999].iso / Aminet / dev / lang / Python152_Src.lha / Python152_Source / Modules / getbuildinfo.c < prev    next >
C/C++ Source or Header  |  1999-04-25  |  499b  |  38 lines

  1. #include "config.h"
  2. #include "myproto.h"
  3.  
  4. #ifdef macintosh
  5. #include "macbuildno.h"
  6. #endif
  7.  
  8. #include <stdio.h>
  9.  
  10. #ifndef DATE
  11. #ifdef __DATE__
  12. #define DATE __DATE__
  13. #else
  14. #define DATE "xx/xx/xx"
  15. #endif
  16. #endif
  17.  
  18. #ifndef TIME
  19. #ifdef __TIME__
  20. #define TIME __TIME__
  21. #else
  22. #define TIME "xx:xx:xx"
  23. #endif
  24. #endif
  25.  
  26. #ifndef BUILD
  27. #define BUILD 0
  28. #endif
  29.  
  30.  
  31. const char *
  32. Py_GetBuildInfo Py_PROTO((void))
  33. {
  34.     static char buildinfo[50];
  35.     sprintf(buildinfo, "#%d, %.20s, %.9s", BUILD, DATE, TIME);
  36.     return buildinfo;
  37. }
  38.